package JDBC1;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class Demo4 {
        public static void main(String[] args) throws Exception {
            Class.forName("com.mysql.jdbc.Driver");
            Connection connection=DriverManager.getConnection("jdbc:mysql://localhost:3306/student","root","root");
            Statement statement=connection.createStatement();
            String sql1="INSERT INTO student(name,age,gander,address)VALUES('李四',19,'男','浙江温州')";
            int resultSet=statement.executeUpdate(sql1);
            System.out.println(resultSet);
            statement.close();
            connection.close();
        }
    }

